package Manager;
import java.util.*;
abstract class Persoana
{
   public Persoana(String n)
   {
      nume = n;
   }

   public abstract String getDescription();

   public String getNume()
   {
      return nume;



   }

   private String nume;
}
class Angajat extends Persoana
{
   public Angajat(String n, double s,
      int year, int month, int day)
   {
      super(n);
      salariu = s;
      GregorianCalendar calendar = new GregorianCalendar(year, month - 1, day);



      ziuaAngajari = calendar.getTime();
   }

   public double getSalariu()
   {
      return salariu;
   }

   public Date getziuaAngajari()
   {
      return ziuaAngajari;
   }

   public String getDescription()



   {
      return String.format("an employee with a salary of $%.2f", salariu);
   }

   public void marireSalariu(double byPercent)
   {
      double marire = salariu * byPercent / 100;
      salariu += marire;



   }

   private double salariu;
   private Date ziuaAngajari;
}
